package com.hc.config;

import com.hc.controller.HelloController;
import com.hc.controller.SpringController;
import com.jfinal.config.*;
import com.jfinal.plugin.spring.SpringPlugin;

/**
 * @author HuChao http://www.weibo.com/u/2420404910
 * @version 1.0 2015年4月3日 下午2:44:47
 */

public class DemoConfig extends JFinalConfig {
	public void configConstant(Constants me) {
		me.setDevMode(true);
	}

	public void configRoute(Routes me) {
		me.add("/hello", HelloController.class);
		me.add("/spring", SpringController.class);
	}

	public void configPlugin(Plugins me) {
		me.add(new SpringPlugin());
	}

	// Global Interceptor
	public void configInterceptor(Interceptors me) {
	}

	public void configHandler(Handlers me) {
	}
}
